package com.hy.erp.inventory.pojo;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;

import com.hy.erp.inventory.dao.interfaces.ICargoSpaceTypeDao;
import com.hy.erp.inventory.pojo.interfaces.ICargoSpaceType;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
@Entity
@Table(name="t_cargoSpaceType")
/*@Name("cargoSpaceType")
@DaoA(ICargoSpaceTypeDao.class)*/
//public class CargoSpaceType extends AbstractPersistentEntity implements ICargoSpaceType
public class CargoSpaceType extends MyBaseModel //implements IPositonType
{
	/**
	 * <ul>
	 * <li>开发作者：李冰</li>
	 * <li>设计日期：2010-10-6；时间：上午10:00:19</li>
	 * <li>字段类型：仓位类型long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long	serialVersionUID	=
														- 7118589617910478842L ;



	
	@ Column ( name = "name" , length = 50,insertable=false,updatable=false)
	@ Index ( name = "nameIndex" )
	public String getName ( )
	{
		return this.get(ICargoSpaceType.NAME) ;
	}

	public void setName (
							String name )
	{
		super.set (ICargoSpaceType.NAME , name );
	}
	@ Column ( name = "description" , length = 50,insertable=false,updatable=false)
	@ Index ( name = "descriptionIndex" )
	public String getDescription ( )
	{
		return this.get(ICargoSpaceType.DESCRIPTION) ;
	}

	public void setDescription (
									String description )
	{
		super.set (ICargoSpaceType.DESCRIPTION , description );
	}

	public CargoSpaceType ( )
	{
		super ( ) ;
	}

	
	

}
